home *** CD-ROM | disk | FTP | other *** search
- unit Pm_test;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, PManager, ExtCtrls, StdCtrls;
-
- type
- TForm1 = class(TForm)
- PanelManager1: TPanelManager;
- MPanel1: TMPanel;
- MPanel2: TMPanel;
- MPanel3: TMPanel;
- Btn1: TButton;
- Button1: TButton;
- Button2: TButton;
- Label1: TLabel;
- Label2: TLabel;
- procedure Btn1Click(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.Btn1Click(Sender: TObject);
- begin
- PanelManager1.TabHighLight :=
- not PanelManager1.TabHighLight;
- end;
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- if PanelManager1.TabColor = clRed then
- begin
- PanelManager1.TabColor := clBlue;
- Button1.Caption := 'Press to get Red fliptabs';
- end
- else
- begin
- PanelManager1.TabColor := clRed;
- Button1.Caption := 'Press to get Blue fliptabs';
- end;
- end;
-
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- MPanel3.ParentTabColor := not MPanel3.ParentTabColor;
- end;
-
- end.
-